package cate.common.table.res.treasureturntable.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.treasureturntable.row.TreasureTurntableGroupRow;

import java.util.List;
import java.util.stream.Collectors;

public class TreasureTurntableGroupSheet extends ESheet<TreasureTurntableGroupRow> {
    @Override
    public String getSheetName() {
        return "奖励组";
    }

    public List<TreasureTurntableGroupRow> getGroupRows(int group) {
        return getList().stream().filter(e -> e.group == group).collect(Collectors.toList());
    }
}
